package com.app114.app.android.rk.widget;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;

public class ExtendedViewPager extends ViewPager {

	private static final String TAG = ExtendedViewPager.class.getSimpleName();

	public ExtendedViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {
		if (v instanceof ExtendedWebView) {
			return ((ExtendedWebView) v).canScrollHor(-dx);
		} else {
			return super.canScroll(v, checkV, dx, x, y);
		}
	}
}
